AppLaunchChecker

This class provides APIs for determining how an app has been launched. This can be useful if you want to confirm that a user has launched your app through its front door activity from their launcher/home screen, rather than just if the app has been opened in the past in order to view a link, open a document or perform some other service for other apps on the device.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun hasStartedFromLauncher(@NonNull context: @NonNull Context): Boolean
Checks if this app has been launched by the user from their launcher or home screen since it was installed.
Link copied to clipboard
open fun onActivityCreate(@NonNull activity: @NonNull Activity)
Records the parameters of an activity's launch for later use by the other methods available on this class.